<form id="maintenance-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备编码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.equipment_code}" readonly>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.equipment_name}" readonly>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('当前状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.status_text}" readonly>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('维护类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-maintenance_type" data-rule="required" class="form-control selectpicker" name="row[maintenance_type]">
                <option value="">{:__('请选择维护类型')}</option>
                <option value="preventive">预防性维护</option>
                <option value="repair">维修</option>
                <option value="inspection">检查</option>
                <option value="status_change">状态变更</option>
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('维护内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-maintenance_content" data-rule="required" class="form-control" name="row[maintenance_content]" rows="3" placeholder="请详细描述维护内容"></textarea>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('维护结果')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-maintenance_result" class="form-control" name="row[maintenance_result]" rows="3" placeholder="请描述维护结果"></textarea>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('维护费用')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-maintenance_cost" class="form-control" name="row[maintenance_cost]" type="number" value="0" min="0" step="0.01" placeholder="维护费用">
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-warning btn-embossed disabled">{:__('保存维护记录')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
